<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
         Commands\OrderDelete::class,
         Commands\OrderUpdate::class,
         Commands\OrderComment::class,
         Commands\FileClear::class,
         Commands\OrderCount::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
         $schedule->command('order:delete')->everyTenMinutes();
         $schedule->command('order:update')->daily();
         $schedule->command('order:comment')->weekly();
         $schedule->command('file:clear')->monthly();
         $schedule->command('order:count')->daily();
//        $schedule->command('order:count')->everyMinute();
    }
}
